package com.april.pattern.creational.factory.factorymethod;

import org.junit.jupiter.api.Test;

/**
 * @author April
 * @version V1.0.0
 * @date 2019/06/22 20:20
 * @description 工厂方法的测试
 */
public class FactoryMethodTest {
    @Test
    public void factoryMethodTest() {
        AbstractVideoFactory videoFactory1 = new JavaVideoFactory();
        AbstractVideoFactory videoFactory2 = new GoVideoFactory();
        videoFactory1.getVideo().produce();
        videoFactory2.getVideo().produce();
    }
}
